    package com.study_security.service;

    import com.baomidou.mybatisplus.extension.service.IService;
    import com.study_security.dto.MemberDTO;
    import com.study_security.dto.ProjectDTO;
    import com.study_security.dto.TaskDTO;
    import com.study_security.entity.Task;
    import org.apache.ibatis.annotations.Param;

    import java.util.List;

    public interface TaskService extends IService<Task> {
        /**
         * 根据项目名查找项目下的所有任务
         *
         * @param projectName 项目名
         * @return 项目下的所有任务
         */
        List<TaskDTO> getTasksByProjectName(String projectName);
        List<TaskDTO> getTasksByProjectId(Long projectId);
        List<ProjectDTO> selectUserProjects( Long userId);

         boolean addTask(Task task);

        boolean updateTaskStatus(Long taskId);

        List<MemberDTO> getProjectMembers(Long projectId);

        boolean deleteTask(Long taskId);
        boolean taskIdUserIdExisits(Long taskId,Long userId);
    }
